refactor(views): use MMDS HeaderStandard#29709
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ebd5db4. Configure here.
…to refactor/headerstandard-titles-views
…to refactor/headerstandard-titles-views
….com/MetaMask/metamask-mobile into refactor/headerstandard-titles-views
…to refactor/headerstandard-titles-views
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Why medium risk:
Affected screens and corresponding tags:
Tags NOT selected:
Performance tests: Not selected - this is a component import migration with no performance-sensitive changes (no list rendering, no data loading, no state management changes). Performance Test Selection: |
|




Description
This PR replaces
HeaderCompactStandardwithHeaderStandardfrom@metamask/design-system-react-nativeacross many screens underapp/components/Views, and updates related unit tests.Reason: Standardize wallet UI headers on the MetaMask design system and reduce dependence on
component-library/components-temp/HeaderCompactStandard.Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/DSYS-706
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Medium Risk
Broad UI refactor across many navigation entry points (screens and bottom sheets); main risk is subtle regressions in back/close behavior, insets, and header action props/testIDs.
Overview
Standardizes view headers by replacing
HeaderCompactStandard(temp component-library) with MMDSHeaderStandardacross a wide set ofapp/components/Viewsscreens and bottom sheets (accounts, activity, add/import flows, networks, settings, security, etc.).Updates unit tests to match the new header component API, including switching from mocked header-prop assertions to interacting with rendered header buttons via new
testIDs (e.g.,SimpleWebview,TooltipModal, and multiple settings/internal-tool screens).Reviewed by Cursor Bugbot for commit abe1508. Bugbot is set up for automated code reviews on this repo. Configure here.